-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update contribution link and clarify encrypted field configuration. #4991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update contribution link and clarify encrypted field configuration. #4991
Conversation
README.adoc
Outdated
@@ -211,8 +211,9 @@ Now you are ready to build Spring Data MongoDB. Simply enter the following `mvnw | |||
|
|||
If you want to build with the regular `mvn` command, you will need https://maven.apache.org/run-maven/index.html[Maven v3.8.0 or above]. | |||
|
|||
_Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests, and in particular, please sign | |||
the https://cla.pivotal.io/sign/spring[Contributor’s Agreement] before your first non-trivial change._ | |||
_Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the Link to cla.pivotal.io
is good, we have further details outlined on DCO at https://github.com/spring-projects/spring-data-build/blob/main/CONTRIBUTING.adoc so we should not add redundancy here.
c3bfa5f
to
3e3086d
Compare
Signed-off-by: Ricardo Mello <[email protected]>
Reconciled changes from main with the updated code sample that includes the required `keyId(...)` configuration for Queryable Encryption using the Range algorithm. Signed-off-by: Ricardo Mello <[email protected]>
d61c9fd
to
60107a8
Compare
Hi! All checks are now passing and the conflict has been resolved. Let me know if there's anything else I should adjust. Thanks again for the review! 😊 |
.queryable(encrypted(int32("age")).algorithm("Range"), range().contention(8).min(0).max(150)) | ||
.encrypted(string("pin")) | ||
.queryable(encrypted(int64("address.sign")).algorithm("Range"), range().contention(2).min(-10L).max(10L)) | ||
.encrypted(int32("pin"), pinDK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer string to capture leading 0
,
@@ -161,16 +167,13 @@ class Patient { | |||
|
|||
@Id String id; | |||
|
|||
@Encrypted(algorithm = "Indexed") | |||
@Encrypted(algorithm = "Indexed") // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not add slashes (to enforce line breaks) in documentation.
@Encrypted(algorithm = "Unindexed") | ||
String pin; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the field here?
{ | ||
keyId: ..., | ||
path: 'pin', | ||
bsonType: 'string' | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the field here?
Updated README.adoc to reflect the current contribution process, replacing the outdated CLA link with the new Developer Certificate of Origin (DCO) instructions.
In mongo-encryption.adoc, updated the code sample to include the required
keyId(...)
call when configuring a field with Queryable Encryption.